import React from "react";

import PropTypes from "prop-types";

import { BASE_URL } from "../../utils/url";

import styles from "./index.module.css";

const NoHouse = ({ children }) => (
  <div className={styles.root}>
    <img
      src={BASE_URL + "/img/not-found.png"}
      alt="暂无数据"
      className={styles.img}
    />
    <p className={styles.msg}>{children}</p>
  </div>
);
NoHouse.prototype = {
  // node表示任何可以渲染的内容
    children:PropTypes.node.isRequired
}

export default NoHouse
